﻿using System.Collections.Generic;
using System.Web.Mvc;
using DiarySocial.Models;

namespace DiarySocial.ViewModels.Profile
{
    public class ProfileVM
    {
        public ProfileVM()
        {
            this.About = new About();
            this.Friends = new Friends();
        }

        public bool Owner { get; set; }
        public About About { get; set; }
        public bool IsLoadedAbout { get; set; }
        public string AboutMessage { get; set; }
        public bool IsLoadedFriend { get; set; }
        public Friends Friends { get; set; }
    }

    public class About
    {
        public About()
        {
            Account = Email = DisplayName = Introduce = Job = School = Address = "";
            Avatar = AppConst.DEFAULT_AVATAR_URL;
        }

        public string Account { get; set; }
        public string Email { get; set; }
        public string DisplayName { get; set; }
        public string Avatar { get; set; }
        public string Introduce { get; set; }
        public string Job { get; set; }
        public string School { get; set; }
        public string Address { get; set; }
    }

    public class Friends
    {
        public Friends()
        {
            this.AllFriends = new List<FriendItem>();
            this.SuggestedFriends = new List<FriendItem>();
            this.RequestedFriends = new List<FriendItem>();
        }

        public List<FriendItem> AllFriends { get; set; }
        public List<FriendItem> SuggestedFriends { get; set; }
        public List<FriendItem> RequestedFriends { get; set; }
    }

    public class FriendItem
    {
        public string DisplayName { get; set; }
        public string Avatar { get; set; }
        public string Description { get; set; }
        public string ProfileUrl { get; set; }
    }
}